package Wix::Tag::ComponentGroup;

use parent qw/Wix::Tag/;

use Wix::Tag::ComponentGroupRef;

sub new() {
	my ($class, $args) = @_;
	
	my $self = Wix::Tag->new({TAG => 'ComponentGroup'});
	
	$self->addAttr('Id', $args->{ID});
	
	return bless($self, $class);
}

sub getComponentGroupRef() {
	my ($self) = @_;
	
	return Wix::Tag::ComponentGroupRef->new(
		{
			ID => $self->getElement()->attr('Id')
		}
	);
}

sub addComponentRef($) {
	my ($self, $componentref) = @_;

	$self->addElement('Wix::Tag::ComponentRef', $componentref);	
}

1;